<!DOCTYPE html>
<html>
<body>
<div id="live" aria-live="polite">Text before</div>
<script>
  function go() {
    document.getElementById('live').innerText = 'Text after';
  }
</script>
</body>
</html>
